package com.amkai.aes.webservice.binary.objecthandler.security;

import java.io.Serializable;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.amkai.aes.aescommon.service.security.PassportSecurityJob;
import com.amkai.aes.aescommon.service.security.PassportSecurityResult;
import com.amkai.aes.generatedbeans.passport.Passport;
import com.amkai.aes.generatedbeans.security.PassportAuditKind;
import com.amkai.aes.server.manager.PassportSecurityManager;
import com.amkai.aes.webservice.binary.JobObjectHandler;

public class PassportSecurityHandler implements JobObjectHandler<PassportSecurityJob, Serializable, PassportSecurityResult> {
	private static final Log logger = LogFactory.getLog(PassportSecurityHandler.class);
	
	@Override
	public PassportSecurityResult process(PassportSecurityJob job, Serializable object) throws Exception {				
		try {
			return PassportSecurityManager.ProcessJob(job);			
		} catch (Exception e) {
			logger.error("",e);
			e.printStackTrace();
			throw e;
		}
	}
	
	
}
